<table class="table table-hover">
    <thead>
        <tr>
            <th>序号</th>
            <th>ID</th>
            <th>服务号</th>
            <th>车牌号</th>
            <th>姓名</th>
            <th>电话</th>
            <th>票数</th>
            <th>去重票数</th>
            <th>排行</th>
            <th>报名时间</th>
        </tr>
    </thead>
    <tbody>
        <volist name="driverLists" id="vo">
            <tr>
                <td>{$i}</td>
                <td>{$vo.id}</td>
                <td>{$vo.service_no}</td>
                <td>{$vo.plate_number}</td>
                <td>{$vo.name}</td>
                <td>{$vo.tel}</td>
                <td>{$vo.vote}</td>
                <td>{$vo.cleanVote}</td>
                <td>{$vo.rank}</td>
                <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
            </tr>
        </volist>
    </tbody>
</table>
<div class="pagination">{$pagination}</div>
<script type="text/javascript">
    var termId = '{$termId}';
    $(function() {
        $("select[name='verify']").change(function() {
            if ($(this).val() == 0 && confirm('禁用将清除该用户的投票数据数据且无法恢复,是否继续?')) {
                $.post("__CONTROLLER__/setVerifyStatus", {
                    "id": $(this).attr('data-id'),
                    "status": $(this).val(),
                    "term_id": termId
                }, function(data) {
                    $().alertMsg({
                        type: "success",
                        msg: data.msg
                    });
                });
            } else {
                $(this).val(1);
            }
        });

        /*$("#btn_reset").click(function() {
            if ( confirm('移除用户将清除该用户的投票数据数据且无法恢复,是否继续?') ) {
                $.post('__CONTROLLER__/clearRank', {}, function(data) {
                    alert(data['msg']);
                });
            }
            return false;
        });*/
    });
</script>

